#ifndef __NIMING_H
#define __NIMING_H

#include "main.h"

#define BYTE0(dwTemp) (*(char *)(&dwTemp))
#define BYTE1(dwTemp) (*(((char *)(&dwTemp))+1))
#define BYTE2(dwTemp) (*(((char *)(&dwTemp))+2))
#define BYTE3(dwTemp) (*(((char *)(&dwTemp))+3))

void ANO_DT_Send_F1(uint16_t _a, uint16_t _b, uint16_t _c, uint16_t _d);

void ANO_DT_Send_F2(int16_t _a, int16_t _b, int16_t _c, int16_t _d);

void ANO_DT_Send_F3(int16_t _a, int16_t _b, int16_t _c);

void sent_data1(uint16_t A, float B, int32_t C);

void sent_F1frame(uint32_t x1_ual,
                  uint32_t x1_enc,
                  uint32_t x2_ual,
                  uint32_t x2_enc,
                  uint32_t y1_ual,
                  uint32_t y1_enc,
                  uint32_t y2_ual,
                  uint32_t y2_enc);

void sent1_F1frame(int32_t x, int32_t y);

#endif
